package com.dao.cook.imp;

import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import com.dao.cook.CookDaoZ;
import com.po.CookZ;
@Repository
public class cookDaoImpZ implements CookDaoZ{
    @Resource(name="sqlSessionTemplate")
    private SqlSessionTemplate sqlSessionTemplate;
	@Override
	public CookZ findCookInfo(CookZ co) {
		CookZ cook=sqlSessionTemplate.selectOne("findCookInfoZ", co);
		return cook;
	}
	public int updateCook(CookZ co) {
		// TODO Auto-generated method stub
		int result=sqlSessionTemplate.update("updateCookZ", co);
		return result;
	}


}
